package org.dromara.app.domain.bo;

import org.dromara.app.domain.SkQuestionBank;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 题库信息业务对象 sk_question_bank
 *
 * @author Evacuation
 * @date 2024-07-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SkQuestionBank.class, reverseConvertGenerate = false)
public class SkQuestionBankBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 问题标题
     */
    @NotBlank(message = "问题标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 答案
     */
    @NotBlank(message = "答案不能为空", groups = { AddGroup.class, EditGroup.class })
    private String answer;


}
